//
//  GatewayUtil.m
//  YSSmartHome
//
//  Created by yanghao on 2016/12/7.
//  Copyright © 2016年 yahaong. All rights reserved.
//

#import "GatewayUtil.h"
#import "MQTTSessionManager.h"

#import "GlobalConst.h"

@implementation GatewayUtil

+ (void)bindSharedGateway: (XAITYPEAPSN )apsn num :(uint32_t)num
{    
    XAIFormatDataCount *formatDataCount = [[XAIFormatDataCount alloc] init];
    [formatDataCount addDataType:XAI_DATA_TYPE_BIN_APSN bytes:&apsn length:sizeof(XAITYPEAPSN)];
    [formatDataCount addDataType:XAI_DATA_TYPE_BIN_DIGITAL_UNSIGN bytes:&num length:sizeof(num)];
    [kMQTTSessionManager sendCmd:0x07 toApsn:kZTCloudGatewayApsn toLuid:kGATEWAYLUID data:formatDataCount];
}

@end
